package testJdk.thread.pool.testThreadPool;

/**
 * @author keyer
 * @Name : learn_jdk.threadPoolTest.Mytest
 * @Description : 描述
 * Created by cyd on 2021-03-29 11:11:39
 */
public class MyTest {
    public static void main(String[] args) {
        MyThreadPool pool = new MyThreadPool(2, 4, 20);
        for (int i = 1; i <= 50; i++) {
            MyTask task = new MyTask(i);
            pool.submit(task);
        }
    }
}
